package cn.gailvlun.gll.net.wish;

import com.google.gson.Gson;

import java.util.Date;

import cn.gailvlun.gll.net.base.Profile;


public class Wish{
    private int id;
    private Profile owner;
    private String text;
    private int day_num;
    private int status;
    private Profile accepter;
    private String accepted_datetime;
    private boolean is_remind;
    private boolean is_finished;
    private Date created;
    private int owner_comment_score;
    private String owner_comment_text;
    private Date owner_comment_datetime;

    private int accepter_comment_score;
    private String accepter_comment_text;
    private Date accepter_comment_datetime;

    public String getOwner_comment_text() {
        return owner_comment_text;
    }

    public Wish setOwner_comment_text(String owner_comment_text) {
        this.owner_comment_text = owner_comment_text;
        return this;
    }

    public Date getOwner_comment_datetime() {
        return owner_comment_datetime;
    }

    public Wish setOwner_comment_datetime(Date owner_comment_datetime) {
        this.owner_comment_datetime = owner_comment_datetime;
        return this;
    }

    public String getAccepter_comment_text() {
        return accepter_comment_text;
    }

    public Wish setAccepter_comment_text(String accepter_comment_text) {
        this.accepter_comment_text = accepter_comment_text;
        return this;
    }

    public Date getAccepter_comment_datetime() {
        return accepter_comment_datetime;
    }

    public Wish setAccepter_comment_datetime(Date accepter_comment_datetime) {
        this.accepter_comment_datetime = accepter_comment_datetime;
        return this;
    }

    public static Wish objectFromData(String str) {

        return new Gson().fromJson(str, Wish.class);
    }

    public static String stringFromObj(Wish obj){
        return new Gson().toJson(obj);
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Profile getOwner() {
        return owner;
    }

    public void setOwner(Profile owner) {
        this.owner = owner;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getDay_num() {
        return day_num;
    }

    public void setDay_num(int day_num) {
        this.day_num = day_num;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Profile getAccepter() {
        return accepter;
    }

    public void setAccepter(Profile accepter) {
        this.accepter = accepter;
    }

    public String getAccepted_datetime() {
        return accepted_datetime;
    }

    public void setAccepted_datetime(String accepted_datetime) {
        this.accepted_datetime = accepted_datetime;
    }

    public boolean isIs_remind() {
        return is_remind;
    }

    public void setIs_remind(boolean is_remind) {
        this.is_remind = is_remind;
    }

    public boolean isIs_finished() {
        return is_finished;
    }

    public void setIs_finished(boolean is_finished) {
        this.is_finished = is_finished;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public int getOwner_comment_score() {
        return owner_comment_score;
    }

    public void setOwner_comment_score(int owner_comment_score) {
        this.owner_comment_score = owner_comment_score;
    }

    public int getAccepter_comment_score() {
        return accepter_comment_score;
    }

    public void setAccepter_comment_score(int accepter_comment_score) {
        this.accepter_comment_score = accepter_comment_score;
    }


}
